public class MyArraylistTest {

    public static void main(String[] args) {
        MyArraylist myArraylist = new MyArraylist();
myArraylist.add(1);
myArraylist.add(1);
myArraylist.add(1);
myArraylist.add(1);
myArraylist.display();
        System.out.println("---------------------");
myArraylist.add(1,2);
myArraylist.display();
        System.out.println("---------------------");
        myArraylist.contains(2);
        System.out.println("----------------------");
        myArraylist.indexOf(2);
        System.out.println("-------------");
        myArraylist.get(4);
        System.out.println("------------------");
        myArraylist.set(2,88);
        myArraylist.display();
        myArraylist.set(4,88);
        myArraylist.display();
        System.out.println("--------");
        myArraylist.set(5,88);
        myArraylist.display();
            System.out.println("-----------");
        myArraylist.remove(88);
        myArraylist.display();
            System.out.println("------");
            myArraylist.remove(1);
            myArraylist.display();
            System.out.println("--");
            myArraylist.remove(88);
            myArraylist.display();
    }
}
